package com.train.schoolplan.user.controller;


import com.train.schoolplan.user.model.User;
import com.train.schoolplan.user.service.UserService;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * 个人中心
 */
@Controller
@RequestMapping("mycenter")
public class UserInfoController {

    @Autowired
    private UserService userService;

    private static final Logger LOGGER = Logger.getLogger(UserController.class);

    /**
     * 我的资料
     * @return
     */
    @RequestMapping("myprofile.html")
    public String myprofile() {
        LOGGER.debug("myprofile>>>>>>>>>");
        return "myprofile";
    }

    /**
     * 修改密码
     * @return
     */
    @RequestMapping("changepwd.html")
    public String changepwd() {
        LOGGER.debug("changepwd>>>>>>>>>");
        return "changepwd";
    }

    /**
     * 重置密码
     * @return
     */
    @RequestMapping("recover-password.html")
    public String recoverpassword() {
        LOGGER.debug("recover-password>>>>>>>>>");
        return "recover-password";
    }

    /**
     * 编辑个人资料
     * @return
     */
    @RequestMapping("profilemodify.html")
    public String profilemodify() {
        LOGGER.debug("profilemodify>>>>>>>>>");
        return "profilemodify";
    }

}
